// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'WorkHourReportId',
                editTable:true ,
        footer: "Foots",
        cnName: '计时计件汇报',
        name: 'WorkHourReport',
        newTabEdit: false,
        url: "/WorkHourReport/",
        sortName: "WorkHourReportId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"WorkerId":"","WorkHour":"","WorkHourPrice":"","WorkQty":"","WorkQtyPrice":"","WorkRate":""};
    const editFormOptions = [[{"dataKey":"职员","data":[],"title":"作业人员","required":true,"field":"WorkerId","type":"select"},
                               {"title":"计时","field":"WorkHour","type":"decimal"},
                               {"title":"计时单价","field":"WorkHourPrice","type":"decimal"},
                               {"title":"件数","field":"WorkQty","type":"decimal"},
                               {"title":"计件单价","field":"WorkQtyPrice","type":"decimal"},
                               {"title":"占比","required":true,"field":"WorkRate","type":"decimal"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'WorkHourReportId',title:'作业工时标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProductProcessReportId',title:'工序汇报标识',type:'int',width:110,hidden:true,require:true,align:'left'},
                       {field:'WorkerId',title:'作业人员',type:'int',bind:{ key:'职员',data:[]},width:110,edit:{type:'select'},require:true,align:'left'},
                       {field:'WorkHour',title:'计时',type:'decimal',width:110,edit:{type:'decimal'},align:'left'},
                       {field:'WorkHourPrice',title:'计时单价',type:'decimal',width:110,edit:{type:'decimal'},align:'left'},
                       {field:'WorkQty',title:'件数',type:'decimal',width:110,edit:{type:'decimal'},align:'left'},
                       {field:'WorkQtyPrice',title:'计件单价',type:'decimal',width:110,edit:{type:'decimal'},align:'left'},
                       {field:'WorkRate',title:'占比',type:'decimal',width:110,edit:{type:'decimal'},require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}